package com.example.back.service;

import com.example.back.entity.Relations;
import com.example.back.mapper.RelationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class RelationService {
    @Autowired
    private RelationMapper relationMapper;
    public int addRelation(Relations relations){
        return relationMapper.addRelation(relations);
    }
   public ArrayList<Relations> queryUserRelation(Relations relations){
        return relationMapper.queryUserRelation(relations);
    }

    public int deleteRelation(Integer id){
        return relationMapper.deleteRelation(id);
    }


}
